package com.idealighter.game.games.fruitslot.struct;

import com.google.common.collect.Lists;

import com.idealighter.game.games.common.AbstractTable;

import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 水浒传桌子 .
 *
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FruitslotTable extends AbstractTable {

  // 所属房间
  private final FruitslotRoom room;
  // 位置,水浒传只有一张桌子
  private final FruitslotSeat seat;

  /**
   * 构造函数.
   * 
   * @param id .
   */
  public FruitslotTable(int id, FruitslotRoom room) {
    super(id);
    this.room = room;
    this.seat = new FruitslotSeat((byte) 0, this);
  }

  @SuppressWarnings("unchecked")
  @Override
  public FruitslotRoom room() {
    return room;
  }

  @Override
  public List<FruitslotSeat> seats() {
    return Lists.newArrayList(seat);
  }
}
